package com.suanfa8.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by liwei on 17/4/10.
 */
@RestController
@RequestMapping("/hello")
public class HelloWorldController {

    // http://localhost:8080/hello/world

    @RequestMapping("/world")
    public String hello(){
        return "world";
    }
}
